package com.study_online.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 张天霸
 */
@Data  //get set方法
@NoArgsConstructor  //无参构造
@AllArgsConstructor  //有参构造
public class User {

    public User(Integer uid, String username, String password) {
        this.uid = uid;
        this.username = username;
        this.password = password;
    }

    @TableId(type = IdType.AUTO) //id真增
    private Integer uid;//用户id
    private String name;//用户昵称
    private String username;//用户名
    private String password;//用户密码
    private String email;//用户邮箱
    private String addTime;//注册时间
    private String updateTime;//修改时间

}